#ifndef JSCSCRIPT_H_
#define JSCSCRIPT_H_

#include "../UTH.h"
#include <JavaScriptCore/JavaScriptCore.h>

namespace phnq
{
	namespace uth
	{
		namespace impl
		{
			class JSCScript : public UTHScript
			{
				public:
					JSCScript(const char *code);
					~JSCScript();
					void compile();
					UTHValue* doExecute();
			
				private:
					char *code;
					JSGlobalContextRef context;
					JSStringRef script;
			};
		}
	}
}

#endif // JSCSCRIPT_H_
